package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.AgentAccount;
import com.weixing.mall.provider.model.query.AgentAccountQuery;
import com.weixing.mall.provider.model.query.AgentBonusQuery;
import com.weixing.mall.provider.model.vo.AgentAccountVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 代理商模块-代理商账户表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface AgentAccountMapper extends BaseMapper<AgentAccount> {

    AgentAccountVo selectByAgentId(long agentId);

    IPage<AgentAccountVo> findByAdmin(@Param("pg") Page page, @Param("qs") AgentAccountQuery agentAccountQuery);
}
